#if !defined USER_H
#define USER_H
#include <string>
using namespace std;

class User{
public:
	User(string loginName="", string loginPassword="");
	virtual ~User(){}
	void setLoginName(string loginName);
	void setLoginPassword(string loginPassword);
	string getLoginName();
	string getLoginPassword();
	bool operator>(const User &r);
	void readFromFile(fstream &);
	void writeToFile(fstream &) const;
	friend istream& operator>>(istream &istrm,User &ruser);
	friend ostream& operator<<(ostream &ostrm,const User &user);

protected:
	string loginName;
	string loginPassword;
};
#endif
